// 列表渲染
function App() {
    // 使用JSX - 条件渲染
    let nameList = [
        { id:'1', name: 'r' },
        { id:'2', name: 't' },
        { id:'3', name: 'y' }
    ]; 
    const title = 
    (
      <ul>
        { nameList.map( (item) => 
            <li key={item.id}> {item.name} </li> 
        )}
      </ul>
    )
    return title;
  }
  export default App;